{capture assign="a"}{$oGame->getTeam1()->name|strlen}{/capture}
{capture assign="b"}{$oGame->getTeam2()->name|strlen}{/capture}
{capture assign="length"}{math equation="a+b" a=$a b=$b}{/capture}
<!-- Planning wedstrijd {$oGame->nefub_id} -->
{strip}
<tr{if $hidden} class="hidden"{/if}>
	<td class="greenLeft{if $sameDate} continue{/if}">
	{if !$sameDate}
		<a href="/agenda/{$oGame->date|date_format:"%d-%m-%Y"}" name="datum_{$oGame->date|date_format:"%d-%m-%Y"}">
		{$oGame->date|date_format:"%e"|ucfirst}<br>{$oGame->date|date_format:"%b"}
		</a>
	{/if}
	</td>	
	<td class="time {if $oGame->time == "00:00:00"}small{/if}">
		{if $oGame->time == "00:00:00"}
				Tijd onbek.
			{else}	
				{$oGame->time|date_format:"%H:%M"}
			{/if}
	</td>{/strip}	
	<td>
		<a href="/wedstrijd/{$oGame->nefub_id}">{strip}
			<h4>
			{if $oGame->getTeam1()} 
				{$oGame->getTeam1()->name|replace:' ':'&nbsp;'}
			{else}
				Onbekend
			{/if}
			{/strip} - {strip}
			{if $oGame->getTeam2()} 
				{$oGame->getTeam2()->name|replace:' ':'&nbsp;'}
			{else}
				Onbekend
			{/if}
			</h4>
			<div class="refereeName">
			{assign var="lastReferee" value=""}		
				Wedstrijdleiding:&nbsp;
				{foreach from=$oGame->getReferees() item="oReferee"}
					{if $lastReferee != $oReferee->getName()}
						{if $lastReferee}, {/if}
						{$oReferee->getName()|replace:' ':'&nbsp;'}
						{assign var="lastReferee" value=$oReferee->getName()}	
					{/if}		
				{foreachelse}
				<i>Onbekend</i>
				{/foreach}
			</div>
			
			{if $showLocation}
			{$oGame->getLocation()->name}, {$oGame->getLocation()->city}
			{/if}
			{if $showCompetition}
				{if $showLocation}<br />{/if}
				
			{$oGame->getCompetition()->name}
			{/if}
			{/strip}</a>
	</td>
</tr>